<template>
  <div class="page_box">
    <el-button @click="showTip('info')">普通提示</el-button>
    <el-button @click="showTip('success')">成功提示</el-button>
    <el-button @click="showTip('error')">失败提示</el-button>
    <el-button @click="showTip('warn')">警告提示</el-button>
  
  
  </div>
</template>

<script>

import message from './message'
export default {

  methods:{
    showTip(type){
        message({text:'测试数据' ,type})
    }
  }
};
</script>

<style></style>
